package com.qf.main.pharmacy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
@author chengqiang
@Create 2024-02-25-22:13
@Description:
*/

/**
 * 订单商品
 */
@ApiModel(description = "订单商品")
@Data
@TableName(value = "order_mall")
public class OrderMall {
    /**
     * 订单商品id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "订单商品id")
    private Integer id;

    /**
     * 归属订单
     */
    @TableField(value = "order_no")
    @ApiModelProperty(value = "归属订单")
    private Long orderNo;

    /**
     * 商品id
     */
    @TableField(value = "order_mall_id")
    @ApiModelProperty(value = "商品id")
    private Integer orderMallId;

    /**
     * 商品名
     */
    @TableField(value = "order_mall_name")
    @ApiModelProperty(value = "商品名")
    private String orderMallName;

    /**
     * 商品单价
     */
    @TableField(value = "order_mall_price")
    @ApiModelProperty(value = "商品单价")
    private BigDecimal orderMallPrice;

    /**
     * 商品数量
     */
    @TableField(value = "order_mall_number")
    @ApiModelProperty(value = "商品数量")
    private Integer orderMallNumber;

    /**
     * 店铺号
     */
    @TableField(value = "shop_no")
    @ApiModelProperty(value = "店铺号")
    private Long shopNo;

    /**
     * 图片
     */
    @TableField(value = "order_img")
    @ApiModelProperty(value = "图片")
    private String orderImg;

    /**
     * 订单状态(0未发货，1已发货，2交易完成)
     */
    @TableField(value = "order_mall_status")
    @ApiModelProperty(value = "订单状态(0未发货，1已发货，2交易完成)")
    private Integer orderMallStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_NO = "order_no";

    public static final String COL_ORDER_MALL_ID = "order_mall_id";

    public static final String COL_ORDER_MALL_NAME = "order_mall_name";

    public static final String COL_ORDER_MALL_PRICE = "order_mall_price";

    public static final String COL_ORDER_MALL_NUMBER = "order_mall_number";

    public static final String COL_SHOP_NO = "shop_no";

    public static final String COL_ORDER_IMG = "order_img";

    public static final String COL_ORDER_MALL_STATUS = "order_mall_status";

    public static final String COL_CREATE_DATE = "create_date";
}